using System;
using System.ComponentModel;
using System.Security.Permissions;
using System.Web;
using System.Web.UI;
using PickGold.Charting.Utilities;

namespace PickGold.Charting
{
	[SRDescription("DescriptionAttributeAnnotationPathPoint_AnnotationPathPoint"), AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
	public class AnnotationPathPoint : ChartElement
	{
		private byte _pointType;
		private float _x;
		private float _y;

		public AnnotationPathPoint()
		{
			this._pointType = 1;
		}

		public AnnotationPathPoint(float x, float y)
		{
			this._pointType = 1;
			this._x = x;
			this._y = y;
		}

		public AnnotationPathPoint(float x, float y, byte type)
		{
			this._pointType = 1;
			this._x = x;
			this._y = y;
			this._pointType = type;
		}

		[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), SerializationVisibility(SerializationVisibility.Hidden), Browsable(false), SRCategory("CategoryAttributeMisc"), EditorBrowsable(EditorBrowsableState.Never), SRDescription("DescriptionAttributeAnnotationPathPoint_Name"), DefaultValue("PathPoint")]
		public string Name
		{
			get
			{
				return "PathPoint";
			}
		}

		[SRDescription("DescriptionAttributeAnnotationPathPoint_Name"), SRCategory("CategoryAttributePosition"), PersistenceMode(PersistenceMode.Attribute), DefaultValue(typeof(byte), "1"), Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
		public byte PointType
		{
			get
			{
				return this._pointType;
			}
			set
			{
				this._pointType = value;
			}
		}

		[Browsable(true), DefaultValue((float)0f), PersistenceMode(PersistenceMode.Attribute), SRCategory("CategoryAttributePosition"), SRDescription("DescriptionAttributeAnnotationPathPoint_X")]
		public float X
		{
			get
			{
				return this._x;
			}
			set
			{
				this._x = value;
			}
		}

		[Browsable(true), SRDescription("DescriptionAttributeAnnotationPathPoint_Y"), PersistenceMode(PersistenceMode.Attribute), DefaultValue((float)0f), SRCategory("CategoryAttributePosition")]
		public float Y
		{
			get
			{
				return this._y;
			}
			set
			{
				this._y = value;
			}
		}
	}
}

